﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Contributor.Data_Objects
{
    public class Lookup
    {
        public int LookupId { get; set; }
        public int LookupTypeId { get; set; }
        public string Code { get; set; }
        public string Description { get; set; }

        public static List<Lookup> LoadLookup()
        {
            string cmdStr = "SELECT LookupId, LookupTypeId, Code, Description FROM dbo_Lookup ORDER BY LookupTypeId, Code";
            return DbSupportLib.Support.QueryToList(new List<Lookup>(), AppConfig.DbConnection, System.Data.CommandType.Text, cmdStr);
        }
    }
}
